﻿///<reference path="jquery-1.4.3.min.js" />
///<reference path="kooboo.js" />
///<reference path="kooboo.webcontrols.js" />



function __initCheckbox(ui,id) {
    kooboo.webcontrols[ui] = {
        val: function (value) {
            if (value == undefined) {
                return $("#" + ui).attr("checked");
            } else {
                var checkbox = $("#" + ui);
                checkbox.attr("checked", value);
            }
        },
        html: function (html) {
            this.val(html);
        },
        reset: function () {
            $("#" + ui).attr("checked", false);
        },
        id: id
    };
}